package com.lin.demo.entity;

import com.baomidou.mybatisplus.annotation.TableId;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author zimingl
 * @Date 2022/11/7 22:01
 * @Description: TODO
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class Student {
    @TableId(value = "id")
    private Long id;
    private String name;
    private Teacher teacher;
//    // 关联属性
//    private List<Teacher> teachers = new ArrayList<>();
}
